#include<iostream>
using namespace std;

class A {
    private:
        int x,y;
    public:
        void f1(int i = 0,int j = 0) {
            x = i;
            y = j;
        }

        void print() {
            cout << x << " " << y << endl;
        }

        void f1(float i = 0) {
            x = i;
            y = 0;
        }
};

int main() {
    A a;
    a.f1(5);
    a.print();
    return 0;
}
